package com.study.whyyy.controller;

import com.study.whyyy.annotations.CustomLogAnnotation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author whyyy
 * @create 2025/2/13 14:17
 */
@RestController
public class MyController {

    @CustomLogAnnotation("1145141919810")
    @GetMapping("/test")
    public String testMethod() {
        // 业务逻辑代码
        String result = "Hello from the annotated method!业务逻辑代码";
        System.out.println("testMethod主业务逻辑");
        return result;
    }

    @GetMapping("/test2")
    public String testMethod2() {
        // 业务逻辑代码
        String result = "Hello from the annotated method!2";
        System.out.println("testMethod2主业务逻辑");
        return result;
    }
}
